<template>
	<view style="position: relative;">
		<view class="bg">
			<HeaderVue title="已合作渠道"></HeaderVue>
			<view class="search row-h-center">
				<image src="/static/images/search.png" class="icon"></image>
				<input placeholder="请输入渠道名称" placeholder-class="place" />
			</view>
		</view>
		<view style="margin-top: -80rpx;padding-bottom: 180rpx;">
			<view class="item" v-for="item,index in 10"  :key="index">
				<view class="com-bg row-h-center">
					<image src="/static/images/qudao.png" class="com-img"></image>
					<view class="com-text" style="margin-left: 5rpx;">
						渠道商{{index}}
					</view>
				</view>
				
				<view class="title">
					高血压治疗仪
				</view>
				<view class="row-end">
					<view class="btn row-center" @click="goMonth(item)">
						查看月对账单
					</view>	
				</view>	
			</view>
		</view>
	
	<view class="recemond row-center" @click="goRec()">
		预引荐渠道
	</view>	
	</view>
</template>

<script>
	import HeaderVue from '@/components/Header.vue'
		export default {
			components: {
				HeaderVue
			},
		data() {
			return {
				
			}
		},
		methods: {
			goMonth(item){
				uni.navigateTo({
					url:'/src/pages/channel/bills_month'
				})
			},
			goRec(){
				uni.navigateTo({
					url:'/src/pages/channel/recommend'
				})
			}
		}
	}
</script>
<style>
	page{
		background: #F2F3F8;
	}
</style>
<style lang="scss" scoped>
	.bg{
		background: linear-gradient( 180deg, #C9D3F6 0%, rgba(201,211,246,0) 100%);
		height: 300rpx;
	}
	.search {
		margin-left: 31rpx;
		margin-right: 31rpx;
		margin-top: 20rpx;
		padding: 22rpx 33rpx;
		background: #FFFFFF;
		border-radius: 46rpx;
	}

	.icon {
		width: 50rpx;
		height: 50rpx;
	}

	.place {
		font-weight: 400;
		font-size: 29rpx;
		color: #82828C;
		line-height: 46rpx;
	}
	.item{
		margin: 31rpx 31rpx 0 31rpx;
		padding: 31rpx;
		background: #FFFFFF;
		border-radius: 25rpx ;
		.title{
			font-weight: 500;
			font-size: 33rpx;
			color: #17161B;
			line-height: 50rpx;
		}
		.com-img{
			margin-left: 5rpx;
			width: 25rpx;
			height: 25rpx;
		}
		.btn{
			width: 217rpx;
			height: 75rpx;
			background: #0D59D1;
			border-radius: 42rpx;
			font-weight: 400;
			font-size: 25rpx;
			color: #FFFFFF;
			line-height: 42rpx;
		}
		.com-text{
			font-weight: 500;
			font-size: 21rpx;
			color: #95541C;
			line-height: 21rpx;
		}
		.com-bg{
			width: 119rpx;
			height: 38rpx;
			background: #FFF3E7;
			border-radius: 4rpx;
		}
	}
	.recemond{
		margin-top: 31rpx;
		margin-right: 61rpx;
		margin-left: 61rpx;
		position: fixed;
		bottom: 130rpx;
		width: calc(100% - 122rpx);
		height: 83rpx;
		background: #0D59D1;
		border-radius: 10rpx ;
		font-weight: 500;
		font-size: 29rpx;
		color: #FFFFFF;
		line-height: 46rpx;
	}
	
</style>
